<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
 var money = prompt("猜猜班长有多少钱，请大家吃饭。");

    if (money >= 2000) {
            alert("班长请你吃西餐");

    } else if (money < 2000 && money >= 1500) {
            alert("班长请大家吃快餐");

     } else if (money < 1500 && money >= 1000) {
            alert("班长请大家喝饮料");

     } else if (money < 1000 && money >= 500) {
            alert("班长没钱啦，请大家吃棒棒糖")

    } else {
            alert("下次班长多带点钱")

        }


    </script>
</head>

<body>

</body>

</html>